package com.briup.web02.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/path"})
public class PathController {

    @RequestMapping( path="/test1")
    public String test1() {
        System.out.println("in  test1");
        return "二元一次方程组";
    }

    @RequestMapping({"/test2","/gg","/st"})
    public String  test2(){
        System.out.println("in  test2");
        return  "吴彦组";
    }

//    @RequestMapping(value = "/test3" ,method = {RequestMethod.GET,RequestMethod.POST})
    @GetMapping("/test3")
    public String test3(){
        System.out.println(" in  test3");
        return "讨吃大队";
    }

}
